package com.ruoyi.framework.config;
import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/*
@description:Redisson的配置类
@ClassName RedissonProperties
@author chen
@create 2024-10-27 13:10
@Version 1.0
*/
@ConfigurationProperties(prefix = "redisson")
@ConditionalOnProperty("redisson.password")
@Component
@Data
public class RedissonProperties
{
    private int timeout = 3000;

    private String address;

    private String password;

    private int database = 0;

    private int connectionPoolSize = 64;

    private int connectionMinimumIdleSize=10;

    private int slaveConnectionPoolSize = 250;

    private int masterConnectionPoolSize = 250;

    private String[] sentinelAddresses;

    private String masterName;
}

